package com.han.demo.springbootlistener;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hanjl
 * @Description TODO
 * @ClassName MySpringController
 * @createTime 2021/11/18 9:53
 */
@RestController
public class MySpringController {


    @Autowired
    MySpringService mySpringService;

    /**
     * 通过请求间接发起事件
     */
    @RequestMapping("/list")
    public void listener() {
        mySpringService.doMySpringService();
    }

}
